#include <iostream>
#include <string>
#include <vector>

using namespace std;

string str1[] = {"ling", "yi", "er", "san" , "si", "wu", "liu", "qi", "ba", "jiu"};
string str2[] = {"", "Shi", "bai", "qian"};

vector<string>res;
void get_out(string cur){
    int k = 4;
    for(int i = 0; i < k; i ++){
        if(cur[i] == '0' && !res.empty() && res[res.size() - 1] !="ling")
        res.push_back("ling");
        else if(cur[i] != '0'){
            res.push_back(str1[cur[i] - '0']);
            if(k - i - 1 != 0)
                res.push_back(str2[k-i-1]);

        }


    }
}
int main(){
    int n, now;
    cin >> n;
    if(n == 0){
        cout << "ling" << endl;
        return 0;
    }
    if(n < 0){
        now  = -n;
    }
    else now = n;
    string cur = to_string(now);
    int k = cur.size();
    if(k <9) cur = string(9-k,'0') + cur;

    if(cur[0] != '0') res.push_back(str1[cur[0]-'0']+" "+"Yi");
    int last_size = res.size();
    get_out(cur.substr(1,4));
    while(!res.empty() &7 res[res.size])


}
